for i in range(100,1000):
    a=i//100
    b=i//10%10
    c=i%10
    if a**3+b**3+c**3==i:
        print("%d=%d*%d*%d+%d*%d*%d+%d*%d*%d"%(i,a,a,a,b,b,b,c,c,c))